package com.my.mall.client.shoppingCart.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.my.mall.client.shoppingCart.vo.ShoppingCartClientVo;

public interface ShoppingCartClientDao {

	List<ShoppingCartClientVo> selectShoppingCartList(@Param("userId") int userId);

	int updatePlus(@Param("id") int id, @Param("number") int number);
	
	int updateMinus(@Param("id") int id, @Param("number") int number);

	int save(@Param("userId") int userId, @Param("goodsId") int goodsId, @Param("buyCount") int buyCount);

	int deleteGoods(@Param("id") int id);
	
	void emptyShoppingCart(@Param("userId") int userId);
	
}
